package com.runoob;

/**
 * 测试
 * <p>
 *
 * </p>
 *
 * @author zenglei
 * @date 2023/05/30/ 16:14
 */
public class BuilderPatternDemo {

    public static void main(String[] args) {
        MealBuilder mealBuilder = new MealBuilder();

        Meal vegMeal = mealBuilder.prepareVegMeal();
        System.out.println("Veg Meal");
        vegMeal.showFoods();
        System.out.println("Total Cost: " + vegMeal.getCost());

        Meal nonVegMeal = mealBuilder.prepareNonVegMeal();
        System.out.println("\n\nNon-Veg Meal");
        nonVegMeal.showFoods();
        System.out.println("Total Cost: " + nonVegMeal.getCost());
    }

}
